#ifndef LOGMANAGER_H
#define LOGMANAGER_H

#include <Windows.h>
struct Cfg;
struct ShareInfo;
struct MsgBuf;
class THosts;

class LogManager
{
public:
	LogManager( Cfg* cfg );
	bool WriteSendStart( void );
	bool WriteSendHead( LPCSTR head );
	bool WriteSendMsg( LPCSTR msg, ULONG command, ShareInfo* shareInfo = NULL );
	bool WriteRecvMsg( MsgBuf* msg, THosts* hosts, ShareInfo* shareInfo = NULL );
	bool WriteStart( void );
	bool WriteMsg( LPCSTR msg, ULONG command, ShareInfo* shareInfo = NULL );

	static void StrictLogFile( char* path );
	
protected:
	bool Write( LPCSTR str );

protected:
	Cfg*	_cfg;
};

#endif	// LOGMANAGER_H